package controllers;

import java.util.ArrayList;
import java.util.List;

public class Messages 
{
	private int playerID;
	private List<String> message;
	
	public Messages(int nr)
	{
		this.playerID = nr;
		message = new ArrayList<String>();
	}
	public void addMessage(String content)
	{
		message.add(content);
	}
	public String getMessage(int which)
	{
		return message.get(which);
	}
	public String merge()
	{
		String result = "";
		for(String temp : message)
		{
			result += temp + " *** ";
		}
		message.clear();
		return result;
	}
}
